export tag=v1.0-metrics
root:
	export ROOT=gitee.com/cxbiao/go-study

build:
	echo "building mywebserver binary"
	mkdir -p bin/amd64
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 WebServer.go

release: build
	echo "building mywebserver container"
	docker build -t bryancoder/webserver:${tag} .

push: release
	echo "pushing bryancoder/webserver"
	docker push bryancoder/webserver:${tag}